home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / lanman_2.zip / TOOLS / RUN / README.TXT next >
Text File  |  1992-03-10  |  4KB  |  107 lines

  1. RUN
  2. ---
  3.  
  4.                          RUN.EXE
  5.  
  6.                A Logon Script Exit Utility
  7.  
  8.  
  9. Summary:
  10.  
  11. It is often the case that a LAN administrator wants his/her users
  12. to go directly into Microsoft Windows or a third-party menu system
  13. immediately upon logging on.  This is often attempted by executing
  14. the application at the end of a logon script.  Unfortunately, memory
  15. problems are often experienced because logon scripts
  16. are spawned on a second copy of COMMAND.COM, and NET.EXE still resides
  17. in memory from the unfinished execution of NET LOGON.
  18.  
  19. RUN.EXE is a utility that allows you to specify a command to
  20. execute upon the completion of your logon script.  It provides
  21. support similar to Novell Netware's login script option:
  22.  
  23.      EXIT "cmdline"
  24.  
  25. RUN.EXE avoids the memory problems mentioned above by executing your
  26. command at your original MS-DOS prompt.
  27.  
  28.  
  29. How to Use RUN.EXE:
  30.  
  31. The following files are included with RUN.EXE
  32.  
  33.     Filename        Description
  34.     ________        ___________
  35.  
  36.     RUN.EXE         Executable
  37.     README.TXT      This File
  38.  
  39. Place RUN.EXE in your current working directory or somewhere in
  40. your path.  At the end of your logon script add
  41.  
  42.     RUN <cmdline>
  43.  
  44. where <cmdline> specifies the command line for the application
  45. that you want to start after you have logged in.  <cmdline>
  46. is limited to 14 characters (see "Important Notes" below).
  47.  
  48.  
  49. Example:
  50.  
  51. Suppose you would like to have Windows start up after your
  52. logon script executes.  Place RUN.EXE somewhere in your path,
  53. and add the following line to the end of your logon script:
  54.  
  55.        RUN WIN
  56.  
  57. Windows will immediately start after your NET LOGON command
  58. finishes, without the memory loss caused by NET.EXE and a second
  59. copy of COMMAND.COM running.
  60.  
  61.  
  62. How Does RUN.EXE Work?
  63.  
  64. RUN.EXE simply takes the command line you specify and dumps
  65. it in the keyboard buffer.  The keyboard buffer will be emptied
  66. at the first available opportunity.  If you use RUN.EXE at the
  67. end of your logon script, the first opportunity will be after
  68. NET LOGON has finished executing.  Therefore your original MS-DOS
  69. prompt will receive the input.
  70.  
  71.  
  72. Important Notes:
  73.  
  74. The keyboard buffer is limited to 16 characters.  Therefore,
  75. because one character is taken for the line feed
  76. and another for the tail pointer, <cmdline> is limited to 14
  77. characters.  If more than 14 characters are specified, RUN.EXE
  78. will ignore them.
  79.  
  80. RUN.EXE was designed to be run exclusively on MS-DOS.  It is
  81. a real mode application which will not execute from OS/2.  The
  82. whole reason for running RUN.EXE is lost in OS/2 since the memory
  83. problem is not an issue.  Similarly you should be careful when
  84. logging in from Windows.  Again the functionality of this utility
  85. in such an environment would be questionable.  Limited tests have
  86. shown that RUN.EXE has no effect when logging on from Windows.
  87.  
  88. If you need more than 14 characters to specify the command(s)
  89. that you need to execute, create a batch file, and have RUN.EXE
  90. call your batch file.  This would be useful if you wanted to
  91. do something like set a variety of environment variables.
  92.  
  93. RUN.EXE writes directly to the keyboard buffer.  Machines that
  94. are not fully IBM compatible could have some problems with RUN.EXE.
  95. It has been successfully tested on a variety of AT-compatible
  96. machines as well as some PS/2s.
  97.  
  98. Persistent Connections are restored after the logon script executes.  
  99. If a Persistent Connection requires a password, the command line 
  100. specified with RUN.EXE will be inserted at the password prompt and 
  101. thus will not run at the MS-DOS command line.  If you are using 
  102. RUN.EXE, be careful that this doesn't happen.  If you need to connect
  103. to a share that requires a password different from the one you logged
  104. on with, you should add the NET USE for this share to the batch file
  105. that RUN.EXE executes.
  106.  
  107.